package com.candy.modal;

import com.candy.dao.DBHelper;

import java.util.List;
import java.util.Map;

/**
 * @author donglin
 * @Title:
 * @类名: UserLoginModal
 * @date 2020/8/19
 */
public class UserLoginModal {
    public boolean isLogined(String adminName,String adminPwd){
        boolean ok=false;
        String strSql="select * from userinfo where userName='"+adminName+"' and userPsw='"+adminPwd+"'";
        List<Map<String,Object>> list=DBHelper.query4ListMap(strSql);
        if(list!=null&&list.size()>0){
            ok=true;
        }
        return ok;

    }
}
